package practice;

import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class AbstractDriver {
	
	static WebDriver driver;
	
	public AbstractDriver(){
		
	}
	
	public static WebDriver getDriver(){
		if (driver==null){
			driver= new FirefoxDriver();
		}
		return driver;
	}

	@Before
	public void testSetUp(){
		//driver=new FirefoxDriver();
		System.out.println("before");
	}
	
	@After
	public void testTearDown(){
		System.out.println("after");
		//driver.close();
	}

}
